﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonsterEngine.Interfaces;

namespace MonsterEngine.Managers
{
    public class PlayerManager
    {
        private static IFightable _player1;
        public static IFightable Player1
        {
            get { return _player1; }
            set { _player1 = value; }
        }
        private static IFightable _player2;
        public static IFightable Player2
        {
            get { return _player2; }
            set { _player2 = value; }
        }

        public PlayerManager()
        { 

        }

        public PlayerManager(IFightable player1, IFightable player2)
        {
            _player1 = player1;
            _player2 = player2;
        }

        public static void SwitchPlayers()
        {
            IFightable formerPlayer1 = _player1;
            IFightable formerPlayer2 = _player2;

            _player1 = formerPlayer2;
            _player2 = formerPlayer1;
        }
    }
}
